import axios from './http'
import base from './base'
import qs from 'qs'
const order = {
  list (params) {
    return axios.get(`${base.pro}/api/order/orderLists`, { params })
  },
  detail (params) {
    return axios.get(`${base.pro}/api/order/orderDetail`, { params })
  },
  sure (params) {
    return axios.post(`${base.pro}/api/order/receipt`, qs.stringify(params))
  }
}

export default order
